package edu.ahut.corejava2.oop.v2;


public class Application {

    public static void main(String[] args) {
        Pillar pillar = new Pillar(10);
        pillar.setBase(new Circle(10));
        System.out.println(pillar.volume());


        pillar.setBase(new Ellipse(6, 7));
        System.out.println(pillar.volume());

        pillar.setBase(new Rectangle());

    }

}
